/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EQUIPAMENTOS")
public class EquipamentosProteu implements Serializable{

    @Id
    @Column(name="EQU_ST_CODIGO")
    private String equStCodigo;
    @Id
    @Column(name="FOR_ST_CODIGO")
    private String forStCodigo;

    @Column(name="EQU_ST_DESCRICAO")
    private String equStDescricao;
    @Column(name="EQU_ST_NUM_SERIE")
    private String equStNumSerie;
    @Column(name="EQU_ST_MARCA")
    private String equStMarca;
    @Column(name="FOR_SYS_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date forSysData;
    @Column(name="FOR_SYS_USUARIO")
    private String forSysUsuario;


    public String getEquStCodigo() {
        return equStCodigo;
    }

    public void setEquStCodigo(String equStCodigo) {
        this.equStCodigo = equStCodigo;
    }

    public String getEquStDescricao() {
        return equStDescricao;
    }

    public void setEquStDescricao(String equStDescricao) {
        this.equStDescricao = equStDescricao;
    }

    public String getEquStMarca() {
        return equStMarca;
    }

    public void setEquStMarca(String equStMarca) {
        this.equStMarca = equStMarca;
    }

    public String getEquStNumSerie() {
        return equStNumSerie;
    }

    public void setEquStNumSerie(String equStNumSerie) {
        this.equStNumSerie = equStNumSerie;
    }

    public String getForStCodigo() {
        return forStCodigo;
    }

    public void setForStCodigo(String forStCodigo) {
        this.forStCodigo = forStCodigo;
    }

    public Date getForSysData() {
        return forSysData;
    }

    public void setForSysData(Date forSysData) {
        this.forSysData = forSysData;
    }

    public String getForSysUsuario() {
        return forSysUsuario;
    }

    public void setForSysUsuario(String forSysUsuario) {
        this.forSysUsuario = forSysUsuario;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EquipamentosProteu other = (EquipamentosProteu) obj;
        if ((this.equStCodigo == null) ? (other.equStCodigo != null) : !this.equStCodigo.equals(other.equStCodigo)) {
            return false;
        }
        if ((this.forStCodigo == null) ? (other.forStCodigo != null) : !this.forStCodigo.equals(other.forStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.equStCodigo != null ? this.equStCodigo.hashCode() : 0);
        hash = 67 * hash + (this.forStCodigo != null ? this.forStCodigo.hashCode() : 0);
        return hash;
    }



}
